<?php
	include ("../connect.php");
	if(isset($_POST['ms_theloai']))
	{
		$ms_theloai = $_POST['ms_theloai'];
		$ms= explode(',', $ms_theloai);
		for($i=0;$i<count($ms);$i++)
		{ 
			$ms_i = $ms[$i];
			$sql = "DELETE FROM the_loai_tin WHERE MS_LOAI_TIN='$ms_i'";
			$row = mysql_query($sql);
			if($row)
			{
				echo "<script>
						alert ('Xóa thành công.');
						location.href='../index.php?noidung=dstlt';
					</script>";
			}
		}
	}
?>

